package seqAlignment;

public class AffineGapPenalty implements GapPenalty {
	int g;
	int h;
	
	public AffineGapPenalty(int h,int g) {
		this.g=g;
		this.h=h;
	}

	@Override
	public int gapPenalty(int x, int y) {
		return g;
	}

	@Override
	public int headPenalty(int x, int y) {
		return h;
	}

}
